/* eslint-disable */
import picturePreview from './picturePreview.vue'
let defultOptions = {
  imgUrlArr: [], // 图片
  isShowNumber: false, // 是否展示图片索引
  activeIndex: 0, // 图片默认索引
  title: [], // 图片解释
  isShowTitle: false, // 是否展示图片解释
  slideChange: null, // 图片切换回调
}
picturePreview.install = (Vue) => {
  let lTemp = Vue.extend(picturePreview);
  let $vm = new lTemp();
  let tpl = $vm.$mount().$el;
  document.body.appendChild(tpl);
  Vue.prototype.$picturePreview = function (options) {
    let curOptions = {...defultOptions};
    $vm.options = Object.assign(curOptions, options);
    $vm.isShow = true;
  }
  Vue.prototype.$picturePreview.hide = function(){
    $vm.isShow = false;
  }
}
export default picturePreview;
